-
Notifications
You must be signed in to change notification settings - Fork 23
Add autoExpandLevel flag to EntryModel
#130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add autoExpandLevel flag to EntryModel
#130
Conversation
|
|
||
| /** | ||
| * Indicates till which level the tree should be expanded. If expandLevel is | ||
| * missing or has value of -1 it would meanthat all the levels are expanded (default behaviour). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space: "meanthat"
| export function EntryModel<T extends Entry>(normalizer: Normalizer<T>): Normalizer<EntryModel<T>> { | ||
| return createNormalizer<EntryModel<any>>({ | ||
| entries: array(normalizer), | ||
| expandLevel: assertNumber, // TODO - does this work correctly? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the name of the field is now autoExpandLevel. See the referenced Trace Compass/Incubator PR. See also the TSP update for that: eclipse-cdt-cloud/trace-server-protocol#120
| * Array of entry | ||
| */ | ||
| entries: T[]; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TSP update has the exact meaning of the field and you can change the description accordingly.
| * missing or has value of -1 it would meanthat all the levels are expanded (default behaviour). | ||
| * If the expandLevel is set to 1 for example, it will expand till the first nodes under the root | ||
| */ | ||
| expandLevel: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autoExpandLevel
2cc906b to
671954f
Compare
autoExpandLevel flag to EntryModel
671954f to
6b54b8e
Compare
bhufmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I put a couple comments.
| entries: T[]; | ||
|
|
||
| /** | ||
| * Sets the auto-expand level to be used for the input of the tree. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to:
Optional auto-expand level to be used for the input of the tree. If omitted value -1 is assumed.
| * - 1 → Top-level elements are expanded, but not their children | ||
| * - 2 → Top-level elements and their children are expanded, but not grand-children | ||
| */ | ||
| autoExpandLevel: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the autoExpandLevel is optional. Change to
autoExpandLevel?: number;I'll update the description in the TSP to make it more obvious.
6b54b8e to
d9f8723
Compare
| entries: T[]; | ||
|
|
||
| /** | ||
| * Optional auto-expand level to be used for the input of the tree. If omitted value -1 is assumed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the previous version of the PR you described the values and meaning. Please bring them back below this line.
Sets the auto-expand level to be used for the input of the tree. Signed-off-by: Will Yang <[email protected]>
d9f8723 to
4820261
Compare
bhufmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. Thanks for the contribution.
marcdumais-work
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @williamsyang-work !
|
The CI failures seem related to current internet outages, that include the |
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
31e7056
into
eclipse-cdt-cloud:master
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
Add support for the autoExpandLevel flag to automatically collapse tree nodes beyond the specified depth level. When autoExpandLevel is set, nodes at depths greater than the specified level are automatically collapsed in the tree view. Related to eclipse-cdt-cloud/tsp-typescript-client#130 Signed-off-by: Will Yang <[email protected]>
What it does
Adds
autoExpandLevelflag to EntryModel.Relates to:
eclipse-tracecompass/org.eclipse.tracecompass#277
eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator#196
How to test
Make sure this works with latest tracecompass-server.
Follow-ups
The functionality for the flag, the ability for the front-end to correctly expand / collapse tree nodes based on the value of
autoExpandLevel, needs to be implemented.Review checklist